import './assets/main.css'

import { createApp } from 'vue'
import { createPinia } from 'pinia'

import App from './App.vue'
import router from './router'

import VueCesium from 'vue-cesium'

import 'vue-cesium/dist/index.css'

const app = createApp(App)

app.use(createPinia())
app.use(router)

// app.use(VueCesium) // 将默认使用 https://unpkg.com/cesium@latest/Build/Cesium/Cesium.js

// 由于Cesium更新可能有破坏性更新，建议在生产环境中锁定 Cesium 版本
app.use(VueCesium, {
  cesiumPath: 'https://unpkg.com/cesium@1.104.0/Build/Cesium/Cesium.js',
  accessToken:
    'eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJqdGkiOiIwZGJhMTliOC1hYTJiLTQ5N2UtOWIwNS0yNjZkODUwMTk3NzgiLCJpZCI6MjA1NTc1LCJpYXQiOjE3MTE4NzMyNDF9.kUBjkZq5PaR7K2-Xk-Kq9AVGzWvAYaPzIwVIx5TeE5Q'
})

app.mount('#app')
